package kr.hkit.powerjava.chapter07.work;

import java.util.Scanner;

public class Prog5 {

	public static void main(String[] args) {
		
		Scanner in = new Scanner(System.in);
		System.out.print("역순할 문자열을 입력 : ");
		String std = in.next();
		
		try {
			for (int i = std.length(); i >= 0; i--) {
				System.out.print(std.charAt(i - 1));
			}
			
		} catch (IndexOutOfBoundsException e) {
		}
	}

}
